Interface Pipeline

All Known Implementing Classes:
PipelineImpl

public interface Pipeline
A wrapper around the mechanism of reading and writing LTVs including filtering of data (encoding, encryption, compression etc)
Author:
packettracerexapps@external.cisco.com
  • Method Summary

    Modifier and Type
    Method
    Description
    The collection of filters for a given pipeline are determined by the connection negotiation properties
    Retrieves the data from the connection, executes the @see Filter.in(byte[]) method of each filter on the pipeline and finally constructs a @see com.cisco.pt.LTV
    void
    write(LTV ltv)
    Executes the @see Filter.out(byte[]) method of each filter on the pipeline and sends the resulting data to the connection
  • Method Details

    • getFilters

      List<Filter> getFilters()
      The collection of filters for a given pipeline are determined by the connection negotiation properties
      Returns:
      List<Filter>a list of filter implementations
      See Also:
    • read

      Retrieves the data from the connection, executes the @see Filter.in(byte[]) method of each filter on the pipeline and finally constructs a @see com.cisco.pt.LTV
      Returns:
      a LTV wrapping the data sent from PT
      Throws:
      IOException - read Exception
      InterruptedException - read Exception
    • write

      void write(LTV ltv) throws IOException
      Executes the @see Filter.out(byte[]) method of each filter on the pipeline and sends the resulting data to the connection
      Parameters:
      ltv - LTV
      Throws:
      IOException - Write exception